package com.p2p.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.p2p.common.DTO.FundsDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RechargeRecordMapper extends BaseMapper<FundsDTO> {

    List<FundsDTO> selectAllRechargeRecordList(@Param("page") Page<FundsDTO> page);

    List<FundsDTO> selectAllRechargeRecordListByRechargeOddNumber(@Param("page") Page<FundsDTO> page, @Param("rechargeOddNumber") String rechargeOddNumber);

    List<FundsDTO> selectAllRechargeRecordListByPhone(@Param("page") Page<FundsDTO> page, @Param("phone") String phone);

    List<FundsDTO> selectAllRechargeRecordListByRechargeMethod(@Param("page") Page<FundsDTO> page, @Param("rechargeMethod") String rechargeMethod);

    List<FundsDTO> selectAllRechargeRecordListByTime(@Param("page") Page<FundsDTO> page,@Param("startTime")String startTime,@Param("stopTime")String stopTime);

    List<FundsDTO> selectAllRechargeRecordListByStatus(@Param("page") Page<FundsDTO> page, @Param("status") Byte status);
}
